/**
 * <pre>
 * Title: 		AdminUserEvent.java
 * Author:		linriqing
 * Create:	 	2011-6-24 上午10:02:12
 * Copyright: 	Copyright (c) 2011
 * Company:		Shenzhen Helper
 * <pre>
 */
package com.hengpeng.itfinoss.domain;

import com.hengpeng.common.acl.vo.Passport;
import com.hengpeng.common.eds.Event;

/**
 * <pre>
 * 系统管理员操作事件
 * </pre>
 * @author linriqing
 * @version 1.0, 2011-6-24
 */
public class AdminOperateEvent extends Event
{
	/**
	 * <pre>
	 * 操作类型
	 * </pre>
	 * @author linriqing
	 * @version 1.0, 2011-6-24
	 */
	public enum AdminOperateType
	{
		/**
		 * 管理员登录
		 */
		Login, 
		/**
		 * 管理员退出
		 */
		Logout;
	}

	private static final long serialVersionUID = 4062464743195195710L;

	private AdminOperateType operateType;

	private Passport passport;

	/**
	 * 构造函数
	 * @param source 事件源
	 * @param summary 事件描述
	 * @param operateType 操作类型
	 * @param passport 通行证信息对象
	 */
	public AdminOperateEvent(Object source, String summary, ActionState actionState, AdminOperateType operateType, Passport passport)
	{
		super(source, summary, actionState);
		this.operateType = operateType;
		this.passport = passport;
	}

	/**
	 * @return 操作类型
	 */
	public AdminOperateType getOperateType()
	{
		return operateType;
	}

	/**
	 * @return 通行证信息对象
	 */
	public Passport getPassport()
	{
		return passport;
	}
}
